package com.consumer.user.service;

import com.common.consumer.service.ConsumerGenericService;
import com.consumer.user.config.FullLogConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * 类描述：用户的feign业务接口类
 *
 * @author linzf
 */
@FeignClient(value="USER-CENTER-PRODUCE",configuration = FullLogConfiguration.class,path = "/user")
public interface ConsumerUserService extends ConsumerGenericService {

    /**
     * 功能描述：实现修改用户
     * @param entity
     * @return
     * @throws Exception
     */
    @PostMapping("updateUser")
    Map<String,Object> updateUser(Map<String,Object> entity);

    /**
     * 功能描述：获取用户
     * @param user
     * @return
     * @throws Exception
     */
    @PostMapping("getUser")
    Map<String,Object> getUser(Map<String,Object> user);

    /**
     * 功能描述：实现新增用户
     * @param entity
     * @return
     */
    @PostMapping("saveUser")
    Map<String,Object> saveUser(Map<String,Object> entity);

}
